package dao

import (
	"shop_be/util"
	"shop_be/model"
)

func CreateOrder(b model.Order) model.Order {

	util.Db.Create(&b)
	return b

}

func FindOrder(uid int) []model.Order {
	b := []model.Order{}
	util.Db.Find(&b, "uid=?", uid)
	return b

}
